<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>帖子总览</title>
    <link rel="stylesheet" href="__PUBLIC_ADMIN__/Css/public.css">
    <script src="__PUBLIC__/Js/jquery-1.7.2.min.js"></script>
    <script src="__PUBLIC__/layer/layer.js"></script>
</head>
<body>
<table class="table">
    <tr>
        <th id="sss">ID</th>
        <th>发布者</th>
        <th>内容</th>
        <th>发布时间</th>
        <th>操作</th>
    </tr>
    <foreach name="list" item="vo">
        <tr>
            <td>{$vo.id}</td>
            <td>{$vo.username}</td>
            <td>{$vo.content|phiz}</td>
            <td>{$vo.time|date="m-d H:i",###}</td>
            <td><a  class="delete"  style="cursor: pointer" id="{:$vo['id']}">删除</a></td>
        </tr>
    </foreach>
    <script>
        $(function(){

            $('.delete').click(function() {
                var content=$(this).parent().prev().prev().html();
                var id=$(this).attr('id');
                layer.confirm(content, {
                    btn: ['确定', '取消'],
                    icon: 2,
                    title:id+'<b>是否删除</b>'
                }, function () {
                    layer.alert('此功能正在开发中...',{icon:4,title:'错误提示'});
                })
            })
        })
    </script>
</table>
</body>
</html>